package cn.itsource.ymcc.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 老师表
 * </p>
 *
 * @author whale.chen
 * @since 2023-02-27
 */
@TableName("t_teacher")
@Data
@Accessors(chain = true)
public class Teacher extends Model<Teacher> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "名字不能为空")
    private String name;

    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空")
    private String intro;

    /**
     * 技术栈
     */
    @NotBlank(message = "技术栈不能为空")
    private String technology;

    /**
     * 职位，高级讲师，架构师
     */
    @NotBlank(message = "职位不能为空")
    private String position;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空")
    private String headImg;

    private String tags;


}
